package cn.hubujyjs.lp.controller;

import cn.hubujyjs.lp.service.StudentTaskService;
import cn.hubujyjs.lp.utils.R;
import cn.hubujyjs.lp.vo.StudentTaskVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.hubujyjs.lp.bo.StudentTaskBo;
import java.util.List;

@RestController
@RequestMapping("/api/task")
public class StudentTaskController {
    @Autowired
    private StudentTaskService service;
    @PostMapping("/result")
    public R<List<StudentTaskVo>> result(@RequestBody(required = false) StudentTaskBo studentTaskBo){
        return service.result(studentTaskBo);
    }
}
